home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / pxfrmdir.z / pxfrmdir
Text File  |  1998-10-30  |  3KB  |  72 lines

  1. PXFRMDIR(3F)                                           Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      PPXXFFRRMMDDIIRR - Removes a directory entry
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCHHAARRAACCTTEERR*_n _p_a_t_h
  9.      IINNTTEEGGEERR _i_l_e_n,, _i_e_r_r_o_r
  10.      CCAALLLL PPXXFFRRMMDDIIRR((_p_a_t_h,, _i_l_e_n,, _i_e_r_r_o_r))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, and IRIX systems
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      IEEE standard interface for FORTRAN 77
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
  20.      default when compiling programs with the MIPSpro 7 Fortran 90 compiler
  21.      or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
  22.      7.2 F77 compiler.
  23.  
  24.      The PPXXFFRRMMDDIIRR subroutine uses the rrmmddiirr function to remove a directory
  25.      entry for the named file.
  26.  
  27.      When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
  28.      UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
  29.      kind unless documented otherwise.  On UNICOS and UNICOS/mk, default
  30.      kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
  31.      IRIX, the default kind is KKIINNDD==44.
  32.  
  33.      The following is a list of valid arguments for this routine:
  34.  
  35.      _p_a_t_h      An input character variable or array element containing the
  36.                name of a file.
  37.  
  38.      _i_l_e_n      An input integer variable containing the length of _p_a_t_h in
  39.                characters.  If _i_l_e_n is zero, all trailing blanks are
  40.                removed before calling rrmmddiirr.
  41.  
  42.      _i_e_r_r_o_r    An output integer variable that contains a status of zero if
  43.                the named file was removed.
  44.  
  45.      In addition to the errors returned by the rrmmddiirr(2) system call,
  46.      PPXXFFRRMMDDIIRR may return the following errors:
  47.  
  48.      EEIINNVVAALL    If _i_l_e_n less than 0 or _i_l_e_n is greater than LLEENN((_p_a_t_h)).
  49.  
  50.      EENNOOMMEEMM    If PPXXFFRRMMDDIIRR is unable to obtain memory to copy _p_a_t_h
  51.  
  52. EEXXAAMMPPLLEESS
  53.           program test
  54.           character*(12) path
  55.           integer ilen, ierr
  56.           path = 'testfile'
  57.           ilen = 0
  58.           call pxfrmdir(path,ilen,ierr)
  59.           if (ierr.ne.0) then
  60.               print *,'FAIL: error from pxfrmdir = ',ierr
  61.           else
  62.               print *,'PASS: No error from pxfrmdir = '
  63.           endif
  64.           end
  65.  
  66. SSEEEE AALLSSOO
  67.      rrmmddiirr(2)
  68.  
  69.      _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
  70.      2165, for the printed version of this man page.
  71.  
  72.